<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your module. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
$wechat_domain = env('WECHAT_DOMAIN','wechat.91ourhome.com');
Route::group([
    'domain' => $wechat_domain
], function () {
    Route::any('wechat/index', 'WechatController@index');
    Route::any('wechat/send_msg', 'WechatController@sendMsg');
    Route::any('wechat/stock_info', 'WechatController@getStockInfo');
});
//Route::get('/wechat', function (Request $request) {
//    // return $request->wechat();
//})->middleware('auth:api');
